Fixed bug occurring when point coordinates are nan