Fixes #5: No redirection when clear button clicked