self.envi error fix (closes #6)