Fixed loading issue in safari