Bugfix in before filter initialization.