Fix microtask clearing.