Fix deprecation warning for Travis