Fix error with the last read