Fix crash when point isnan