Fixed a but with deleting input.