Fixed the error with the array not initializing.