Fixed the deserialization issue

Classes MUST be registered in the same order on the client and server.