Fix constructor of plugins