Fixed usleep condition