fixed bug with input field