Fixed retrieving identity object when real identity uri is received