fixed bug with reading 0s. data is copied to correct buffer now.