fix bug when no resource is selected;
removes strict comparison on resource filtering;