Don't call setState twice.

Setting it to ongoing cause the script to move to this fragment.
However, afterwards we setting it to done leaving the script at the
wrong position.