fixed bug in lib/getSupplier.js