Fix the macro so it can be used with a vector of elements.