fixed tonic bug