Fix "Find and replace all" bug