don't call toFixed() on undefined