fixed small bug with client