repairs recursive nextTick bug