Replace value with originalValue in some places.