fix none type