Fixed Reset Permissions patch