fix two bugs in blog page and tag page