fix uid bug