fix thinko in detecting loading plugins