Categories initial bugfix

Signed-off-by: Yury Tsarev <ytsarev@suse.com>
Fix category creation/editing

Signed-off-by: Yury Tsarev <ytsarev@suse.com>