fadeout flag now applied to the correct variable when end of envelope reached