fixed last read bug