fixed inputType bug