fix scale condition bug