Bug fix for adding permission roles.