Fix variable usage when filtering recurring events

Maybe this time I'll learn not to copy and paste between contexts...
One day this thing should have CI.