fix possible infinite loop by wrong _parentKey property