heartbeat_interval bug when checking last received timestamps

another one related to the refactoring in #52 yay