fix stupid NaN check bug. derp.