fixed bug in add env comp