fixed safari error.