fixed a problem with converting links

Change-Id: I432e10af6a31a4efde0a002a2e321b7a8ed910e1