fix read counting