update to fix the pre render error