fix roles errors on app inialization