fix up toNumber