Fix safari alternate issue