fix check on null element in remote_totali