Fix container submit when agent is already running.