Fixed screen-greying bug when resizing.