Fix formatIdentity