bug in read_all_chars fixed.