bug fix for rendering links