Minor bug fix.

The userId was being set to null