fixed flux being a copy of data to being a reference

This was an unfortunate oversight in the previous fix. 

Thanks @mhvk for suggesting this solution. 

@keflavich @nhmc, will merge when TRAVIS passes.