fixed ``main``: writing to '...anc.txt.' even ``task`` has not ``task.title``