Solved some problems related to the way in which vectors are computed