fixed bug with ones() and zeros() vector gens