fix data-clearing