Fixed NPE on Travis CI