bugfix when saving a security role