Dead screen bug fix

Fixed bug : sometimes, the session manager might complain about dead
screens.