fix lost task bug