hotfix for NullPointerException when adding a new role