corrected bug where wouldnt go to closedasleep