Bugfix for listing tasks