Replace &vector[0] with vector.data() to avoid invalid dereference caught by debug...