fix returned an invalid user id