fix for getLeadingModule