Fixed HUGE error in luminosity distance function