Merge pull request #73 from jhawthorn/rewrite_fix

fix RewritePlugin initialization