Fix resource filtering.