Fix a bug when cancelling <leader>f or <leader>t command