Bugfix in createCoreKey(parent, null)