fixed HashMap casting issue