Fix node editor when changing the role