fixed vectorization of the box vector input.