Fixed a bug in KimQuery that was causing extra reference data to load.