Fixed Safari bug on web and mobile