missing categories are correctly saved in binary