fix unparsed values calculation