this should prevent the screen hiding bug

It seems like newer parts of the script do it this way too.