Fixed a server-writing bug