fixed ready checking