fixed typo in Client causing unexpected behavour