fix some bugs with input