Fix userid passing