fix some bugs of client