fix none type dimension