[Bug] Fix memory access error in addValue