fixed bug related to empty type declarations