Revert "del duplicate attribute"

This reverts commit 7e958c6207d6fecad8d7fa865c273ab56be39cc0.