Fix "division by zero" warning
Deprecated plugin_manager to core_plugin_manager