fix health check for variable heartbeat timeouts