Fix "cleanup_pluginmode" parameter declaration
Fix conditions for first br removal
Keep attributes order