Fix in the plugin check function