Fixed bugs with filtering for anonymous users.