fixed find and replace recusion hell