fix the some problem around ecl