Fix deprecation warnings
travis