fix removing objecttype when plugin datainjection is not activated