Fixed find running on cancel or close dialog