Fixed the bug in parent membership