Fixed a bug in explicit role saving