Fix link click bug