fix misuse of Vector* and HMap