Fixed a problem causing garbage values to be returned for screen bounds