Bug fix - file's status depending on the tasks' status