fixed returning of user id