Improve outputs to rerender by prettyPrint