Fix resetting array, still causing out of memory...