Fixed attribute duplication bug