Fix problem with resource filtering