category label mapper: bugfix and testing