unset $aReplicationLag inside while loop