fix bug in set includeInExternal = true