Fixed bad 500 during adding roles.