Fixed slotToIndex (12 lines!)