Fixing resize errors.