wallet security fixes