fix "bad math expression"