fix read_until