fix # 7167, scale input is not converted properly...