Bugfixes for sortKey, signature, indexed

Fix small copy paste bugs