unbreak isfinite, small fixes