fix loop when plugin is not in used