Fixed bug: Pointers to vector internas were given away and became invalid because of resizing the vector