Fixed reversion with duplicate attribute names.