fix alert when sleeping