fix find-and-replace-all errors