Repaired faulty client.cpp