oops fix keepalive bug