bug solved for avoided types