Minor tweak to query selected