set deafult attributes to nil.