fixes a bug where two levels of label tags were used