Fixes the stuck-until-clicked wake problem