input fix

fixed a bug where input wasn't cleared when called.