Fixed problem caused by vectors reallocating (references break)