- Fixed bug when resizing.