fix a problem that line number of last entry cannot be print out in example