New error management to avoid random minimas