fix sleep()