Fix reset array after yeild

Array would continue to expand otherwise.

Using yeild here it probably over kill, but I wanted to
expement with it anyway.