Minor sleep mode bugfix