fix data-duplex-changed bug