The code was mostly written before the pmap_k* inconsistency fixes. Work around might still remain. Should be removed.