some fixes for type def vars