fix GID, UID misordering