IFRC: Fix bug in realm_entity setting