Fix 'undefined' labels in Safari browser