Fix get task ids