fix updateFromVector