Segment attribute not kept during live widget updates

I have an issue on Matomo 3.5.1 with the “getSimpleLastVisitCount” of the “Live” module. I’m using the pageUrl as segment with a syntax like segment=pageUrl=$foo/ . On the initial loading I get a small number of visitors, which seems correct. However when the widget refreshes, I get the total number of live visitors for the whole site again instead of the specific segment.