Fixed some errors in the user generator