solved the userId bug