Figuring out why values are lost in namevalue table