fixed a server crash due to a client class getting called