Bug fix coordinates in potveg and kernel density estimation