PM: Sleep: Fix function