Fix wrong relation names.
Filter out many duplicate index entries.