fix checking on supplier