fixed IsADraw bug