Fix errors reported by travis