Fix user type attribute setting bug. Thanks Mike.