fix bugs in Hexo2.7+