fixed item==None error