Remove inner loop when doing category import