Fixed link to onBeforeRender