[Task #2797]: fixed plugin init

@diogofscmariano please review