Move bug # 3368 to closed bugs
Fix bug #3289
Fix bug #3291, stack overflow in rewrite.