fixed client.cpp