Fixed read buffer pointer issue.