Fix incorrect replacement.

Use find instead of select since select will find all matches.