fix code chagne and new error log