Fix hash bug

Fixes #12

May I ask you to pull this in?

Thank you.