Fix loading categories from graph