fixed issue where the application error's out on screen change.