Lock scale flipping

Lock condition under variable, to do not flip accidentally ibkecs whenf scalingkthem