fixed inf. loop while looking up installed plugins