ADSR logic fix