bug fixed when reads = 0