Fixes for potential localization issues
Fix for flushing rewrite rules