Bad reference to key instead of keys breaking certain queries