Use proper value when reallocating array.