use correct variable name for hash retrieval
fixes #715