fix clearing inputs