Fixed a bug that caused the category tree not being updated on loading
or extraction of a new graph