Fixed issue with setting up time for client to sleep.