fixed bug when closing in zen mode