Setting client heartbeat check in to less than the server heartbeat check fixed the flicker problem