Fix exceptions from Bigdecimal