fixed issue in add env comp controller