fix(parentLevels): fix indexOf error