fix the appveyor ci error and the travis ci error