fixed error with getting userID for webAPI