Resize optimization fix.