Correcting error in recordDVM that causes wrong values to be saved