bug with input