bug-fix: categories are lost when moving them from a parent category to
the model-type root (parent category = null)