bug fix on parsing link urls