entities similar to #8891 crash for two resources with same role