fixed init of sleeping