fixed uid bug in view