fix: fix default task function handling with multiple task functions