bash math fix