fix to initialize hash fields