Fix cursor when an array is returned