fix vector alignment error