Fixed safari problem