Fixed exception with resetting input field for items.
Merge pull request #2 from JGefroh/fix/using-undefined-variable

FIX: Fixed exception with resetting input field for items.