fixed issue in env comp controller