fixed strange safari bug