Fix members delete and user entity check