fix pointByValue method when working with singleVector