Fix bug with array.