fix uid type in api