fix OSD SEGV in heartbeat()