Fixed `heartbeat()` and `ping()`.