Safari 7 issue fix