Fixed bug in ComplexIdentity