Fixed bytes per read related bugs