Fix for old api style call in the generated plugin