fixed bug with non-normalised keypaths