fix bug in removeRole method