Fixes resizing to