Fix custom key configuration for primary user ids