Controlling the risks of ergot alkaloids