fixed select filtering for relations