'proper' resize fix