fix Safari overflow issue