fix getting data from cursor (but not all - data contains chunk)