client terminating bug fixed