fix issues with category import