fixed 'root' behaviour for category_create