wake lock bug fix