fix None comparison