Bug fixes in constructor-by-vector