Fix error in role parsing