fix include plugin regression since recent code refactoring