Fixed sometimes an input error message appearing