fix for Safari 5