bug-fix in category tree: category elements are out of sync with the DB
model after creation or deletion