fix RewritePlugin initialization

Error was introduced in 6d68a48