safari dom issue fixed