fix queries created in 7 not appearing in 6