fix error with identity dict