nextTick bug