Fix filtering of a programme resource.