fixing uid bug