Fix DocumentReference identifiers overlap