Fix lua library bug.