Fixes manual resizing