Fix on division by zero in error propagation