Fix safari blank page error