fixed safari script problem