Fix uniqueIdentifier is no more supported on iOS 7