First of all, series() was designed to be used in run(), not main().

Second, during INITRUN, series() only returns a dummy buffer. So you're writing to the same buffer for both arrays.

Read the documentation for series():
https://zorro-project.com/manual/en/series.htm
Quote
Since the LookBack value is normally only known after the INITRUN, series are allocated in the FIRSTRUN. During the INITRUN they are set to a temporary pointer and filled with the initial value. This temporary content is overwritten by the series allocation in the FIRSTRUN. Series are only valid during the session and released after the EXITRUN.

An internal counter determines the pointer to be returned by a series() call. For keeping the counter in sync with the series calls, they are restricted to the run function or a function that is called from the run function, and must be always in the same order. Therefore series calls cannot be skipped by if or other conditions that change from bar to bar (see example below). If the content of a series shall depend on if conditions, set the [0] element dependent on if. These restrictions also apply to all functions that internally create series, such as some indicator or signal processing functions. Zorro detects wrong series calls and will display an error message in this case.

For accessing the same series from several functions, declare a global vars, and set it with a series call in the run function.