Fix heart cmd when environment variable not set