Fix HashMap generation error