Bugfix: first uid validity then uid