Fix crash with deactivated users