Fix mac signature hash table indexing

Hi,

I just fixed a little bug that causes segfaults.

Also there are two other small fixes.

Thank you