fixed a race condition occurring with two readychecks occurring at the same time