constant changed into number



A weird result from maxima: constant D1 changed into number 7:

(C1) n : 7$

(C2) U1 : D1*(%E^(-a1*r1) - 1)*(%E^(-a1*r1) - 1);

                                   - a1 r1     2
(D2)                          7 (%E        - 1)



Anybody can reproduce such result?

What is wrong in those command lines?

thank you 

--
Paolo Pumilia