fixing presence heartbeat issue in minified version