Fixing bugs in importController.