Removed duplicate pluginsLoaded++