fix removing empty categories -- not currently functional