Fixing resize method