Fixed 3d resizing