fix an invalid function()