Fix problem where the add_flow command is reading an unitialized array.