solve mobile safari bug