Fix bad argument #1 to 'tonumber'