Fix resizing origin