fix bug with input type number