Fix bug causing immediate() callback starvation