Fixed server & serialization bugs.