fix type name identifier redeclaration (variable) bug