fix bug to allow the same vector