fixed exception in readyToPlay