Error: Argument should be an array of numbers of length 3