read_ascii(): fix bugs in parsing label lines