Fix config serialization (wrong var assignment)