Fixed bug when resizing on the left