Fixes incorrect resizing widths.