fix bug to get user id