Fixed issue when rendering in proxy mode