Fix for saving categories with units