If no categories found, assign it to Core.
Merge pull request #10 from ktf/master

Handle the case in which the no categories are found.