fix can't delete user where has device history