Input field bug fix