Fixed a bug where role assignments may not be saved