fix a bug for frontend Shipper.js