fix bug bug can stop machine in lua call c++ functions