Safari bug fix