Bug fix where input was not being removed.