Fixes resizing