sleepTime bug fix