fixed error for odd number of reads