fix input value change issue