#740130: #561892 not applied correctly, caused the rewrite checkbox to be ignored and rewrite always used.