fix the issues of sale_exception dependency