fix bug in supplier controller