fixed canceling search