fix number format exceptions