fix recursive hash issues: fixes #655