Fixes getUserByIdentity issue