Fix: Fixed incorrect handling of "clear" button.