fix data check