Heartbeat problem less likely when sleep apnea is treated