fixed possible \"WTF STEAM\" moments with the window resizing