Fixed task list printing bug