Fixed crash if width and height are not equal