minor fix for getting Type Name