Fix mobile safari issues