Fixed the applying of roles and traits

I found this while trying to debug why my role was not being applied