Bugfix on category save