fixed bug from type rename