Fix flakiness on travis.