Fix for Safari 7