fixed bug on duplication of features and environments