fixed userId update problem