Fixed error when vector is declared more than once