Fixed a resizing issue