fixing in get_all_tasks