Hashmap generation crash fixe