Correct bug with the asleep function.