small tweak to schema query