fix errors reported by landscape.io