Fix the errors reported by travis