fixed errors in client