Hi Thomas, thanks for the bug report. This bug has been showing up and disappearing as this used to be quite an unstable area. But I think I fixed this for good in maint.
One use that still needs careful check is when the agenda is filtered, so perhaps you can hunt things from there. Thanks, -- Bastien