fix a bug about creating task file