fix support for type objects