fixed bug in draft4 type attr