Fixed bug in serializing hand