Fixing protocol equals and making sure exceptions on index are always lo...

...gged