fix data_capturing