fixed checking against wrong provider id