fixed badarith