changed label statement conditions

fixed replacing identifiers in one variant when there are actually several variants of them