Fixing Compile errors for this plugin