You are not seeing an error; the practice of adding your own AS number multiple times is called AS Path Prepending.
Some multihomed eBGP autonomous systems use AS path prepending to ensure that at least one of their peers are less preferred, and they make some (or all) routes announced to that peer less preferable with AS Path Prepending. eBGP selects paths based on the shortest AS path, therefore AS Path prepending makes those announcements less preferred than announcements that were not prepended.