fix loading roles from core