Fixed issue with permissions not save