Fixing minor error in resize script