Fixed error with identity encoding.