fix incorrect query on smartplaylists with a set rule