Fix timers

Fixed two issues with the new sleep() and wakeup() methods