Fix score serialization