fix bug of throw-an for drawing