fix bug safari