Fixes #2082, Find Replace inf loop