fix bug with niet roles being defined too early