Fixes: #2595 Using __construct in plugin