Fixed bug causing failed deserializations.