breaking infinite ready loop