Fix false positives when inspecting records, closes #2287