changed a namespace.
Fixed a bug when loading categories.
Added 'flatStructure' when loading categories.