Small fix in set array value