Fixing a few bugs related to 0 labels.