Fix disconnects due to prerendering