Fixed safari bug