Update flux.hpp

Bug fixes 0.6