Fix a bug in func_by_name().
Debug grant/revoke Lua.