Initialize the error value to zero in the right moment