Fix HashMap undefined due to missing import