fix afterRender