#11 corrected the behaviour of the clear button