This is not ideal behaviour. I think the correct fix is to improve kde_pos (which might also mean jettisoning it). Worth looking at.