Quick fix to the Safari undefined string bug