Fixed bug triggered when removing all users from a virtual domain