Fixed bug with rounding errors when generating luminosity scale