Fixed previous errors with array access and overwriting/resetting