Fixed user type check.