Not autosaving on team UI change. Was breaking the permission system. Now deleting permissions associated to a team, related a to a project, when deleting said project.