fix None attr