fix required attr