fixed link parsing