fix empty type bug