fixed history link bug