socket heartbeat bug fixed