TravisCI fix

Close #3282
Can be merged once the build passed