fixed roles being applied 2 times