fix bug in inputconvert