Fix potential issue when resuming in the read listener
Fix bug in pipeline buffer where offset and length is ignored
Fix issue with read listener