Fixing array to mutable array warning