fix sloppy find and replace