Fixed bug for array.