fix cursor to data conversion