Fix to rewriter.