make ect work and fix bug when --adaptive is off