Fixed bug. Was trying to use compact index to see if we've seen it before instead of id