Fixed "$$" replace problem.