small bug fix on dealing with roles