Fixed a problem with the serialization of parameters.