fixed a bug where the clear button fails to clear the real amount