fixed ENI attachment bug