A more correct version of kde