fixed another error in returning uid