fix element order issue in update-role/create-role requests