Fixed problem with user ID regenerating.

Fixed problem with user ID regenerating.  Fixes #164