Fix OOP plugin generation

Same as above.