Fixed reverse buffer reading problem