fix ugly error due to shared vectors.