fixed bug introduced in OneRewriter.