fixes for loading summaries query and loading valid items query