Corrected the array size change in the grow method.