fixed kde results affected by panning bug