Fix $ sign replace issue