fix client bugs[ length ]