Fixed path simplification bug with npoint.