fix obsolate type attr