fixed safari bug