fixed bug with loading usergroup permissions and modules