fixed error, was setting id instead of userId