fix race condition 500 when removing a user from a domain