fix: fix race condition at reconnection on ATG duration computation