fix persisting categories