Fixed notices reported by travis