environment dupe fix