Array bounds overflow fixed.