fix update as-role when roles gets updated