fixes deleting the whole vector if more then UINT_MAX elements were
appended