fix params serialization