Fix rewrite rule