Fixed onRender callback.