Corrected bug with array not reseting