fix endless loop (typo) in read_until_...