add safari 5 workaround