Fixing 0/0 error for flux fraction