fix flipped labels