fixes a bug if a empty plugin is inside an other plugin