fixed more bugs in idx import