Fix error when calling plugin with parameters