Fixed a new resizing bug