array.push bug fix