A counterexample to the Nelson-Seiberg theorem