fix client enter bug