Fix the bug that NameServer handle method could be frozen.