Added missing base argument to tonumber.