fix client bug