fix return in lua_f_log