Fixed some rewrite settings