fixed isMill null pointer