fix challenge export to csv to export all tasks (issue #2947)