Fix handling of identities_level=4