Fixed mishandling of uid caused by accidentally unshadowed field