solve the type display problem.