Bug fixed

fix the bug when time runs out