fix issue #2484,call afterRender() after processOutput() in render()