Fixing plugin function not found