fix null pointer exception caused by interleaving threads in User.cs