Resizing bug fixed