Fix normalizeValue.