bug fix role assignment