fix initial rendering in production