Corrected numBars scope issue