Patches get_active_tasks to actually work