Make saving categories actually work