Double declaring a local variable in set_nexttask fixed.