prerender event fix