fix vector input