fixed duplicate key in array