Fix to getUserId method