Fix problem serializing parameters