On the existence of error-correcting pairs