Parent relations tested and bugfixed