fixed a bug of run all tasks scripts