fixed isFinished()