Fixed error management when all goes ok.