Fix scheduling of inlined tasks.