Get typename correctly