fix was_plan serach & replace