clear vector when clear the container