Fixes some afterRender references.