bugfix for sleep-for-time