fixed keep-alive processing