Fix error in client