Fixing keepalive problem.