fix problem with scopes being called after another filter