fixed resetting input