Fix the rewrite rule