fixed safari 5 issue