Fix a bug in projPointOntoEdge()