fix client code style