fix bug in ecnf import script