fix bug in eigen init of vector