Fixed safari bug for videos