fixed array.push bug