fix crash caused by hash when sym expected

Fixes #98.