fixed wvec initialization