Fix build failed on Travis CI