fixed problem with keepalive script