Fix travis build failure on 1.8.7