Fixed bug affecting values in .update