Changed to mutable copy of array