Fixing the flush of rewrite rules.