calendarProvider: fix bug - respect filter. Bug caused by overriding the name of variables with higher scope.