fixed typo that was causing input field to not be cleared