Fix bug in CLABELS when a missing category was moved, and add test.