fix data and error arg