fixed bug in the plugin template, we were trying to add a class as a service instead of its instance