fix vector_add in case of MAX_CAPACITY elements