Fixed an error which was causing the wrong values to be picked for both flux and wavelength; they should now be getting all the proper values.