fixed environs primary key