fix uid/gid mapping